import request from '@/utils/request';
// list
export const bianhuantuList = (params) => {
  return request({
    url: '/admin/bianhuantu/page',
    method: 'post',
    data: params,
  })
};
export const bianhuantuDetail = (id) => {
  return request({
    url: '/admin/bianhuantu/' + id,
    method: 'get',
  })
};
// add
export const bianhuantuSave = (params) => {
  return request({
    url: '/admin/bianhuantu',
    method: 'post',
    data: params,
  })
};
// updt
export const bianhuantuEdit = (id, params) => {
  return request({
    url: '/admin/bianhuantu/' + id,
    method: 'PATCH',
    data: params,
  })
};
// delete
export const bianhuantuDelete = (id) => {
  return request({
    url: '/admin/bianhuantu/' + id,
    method: 'delete',
  })
};
// pldel
export const bianhuantuDeleteList = (bianhuantus) => {
  return request({
    url: '/admin/bianhuantu/deleteList',
    data: { list: bianhuantus },
    method: 'post',
  })
};
// all
export const bianhuantuAllList = () => {
  return request({
    url: '/admin/bianhuantu',
    method: 'get',
  })
};

